﻿/*

COMPORT_TIMEOUT_READ (1 to 100) and COMPORT_TIMEOUT_HANDLE (10 to 100) - depends on comport hardware and windows driver. 
Usually the timeouts are
 the small values.  The less value COMPORT_TIMEOUT_READ  - the faster long commands are processed.

Increase the values if communication errors appear. 
 



GENERAL_TIMEOUT (1 to 200), RESPONSE_HANDLE_TIMEOUT1 (10 to 100) and RESPONSE_HANDLE_TIMEOUT2 (30 to 1000) - timeouts for data 
processing in the software, depend on the speed of the
PC and the workload of the operating system with other processes.  
Set GENERAL_TIMEOUT < RESPONSE_HANDLE_TIMEOUT1 < RESPONSE_HANDLE_TIMEOUT2 


CYCLE_READ_DELAY (10 to 1000) - Pause between status 
requests while waiting for a specific state of the controller register.



STATE_REQ (100 to 5000) - timer to get state of the controller. Normal value = minimum value = 100 to 200; max = 5000. 



READ_ATTEMPTS (1 to 10) - how many attempts to read a response to a request.
Set this value higher if the software doesn't operate 
fast enougth.



SLOW parameter =1 for old or slow  computers.Set SLOW = 1 if the software  slows down or freezes.


SAVE_LOG =1 if want to save logs to a file.


WRITE_LOG =1 if want to write data to log.



LINES_TO_LOG - min = 100, max = 1000; normal = 500. How many lines to be saved in one file. 
The higher value, the the higher the value, 
the less frequent the recording.



MAX_READ_REGISTERS - how many registers can be read in one packet.



*/



<STATE_REQ>=200

<COMPORT_TIMEOUT_READ>=30
<COMPORT_TIMEOUT_READ2>=150
<COMPORT_TIMEOUT_HANDLE>=50

<GENERAL_TIMEOUT>=50

<RESPONSE_HANDLE_TIMEOUT1>=100

<RESPONSE_HANDLE_TIMEOUT2>=150

<CYCLE_READ_DELAY>=100


<READ_ATTEMPTS>=5




<SLOW>=1
<GET_COMM_STATUS>=1
<WRITE_WAIT>=0

<SAVE_LOG>=0


<LINES_TO_LOG>=500

<WRITE_LOG>=1

<MAX_READ_REGISTERS>=120
<LOG_PATH>=